"use strict";

module.exports = function (sequelize, DataTypes) {
    var DcaUserRoutingHistory = sequelize.define("dcaUserRoutingHistory", {
        latitude: {
            type: DataTypes.DOUBLE,
            allowNull: false,
        },
        longitude: {
            type: DataTypes.DOUBLE,
            allowNull: false,
        },
        city: {
            type: DataTypes.STRING,
            allowNull: true,
        },
        address: {
            type: DataTypes.STRING,
            allowNull: true,
        },
        traceSessionId: {
            type: DataTypes.STRING,
            allowNull: true,
        }
    },
        {
            freezeTableName: true,
            paranoid: true,
        });

    DcaUserRoutingHistory.associate = function (models) {

    }

    return DcaUserRoutingHistory;
};